{% extends 'department/base.html' %}
{% block title %} 部门详情信息 {% endblock %}
{% block content %}
    <div class="container">
        <br/><br/><br/>
        <div class="input-group errorlist">
            {{ msg }}
        </div>
        <form action="{% url 'department:create' %}" method="post"
              novalidate>
            {% csrf_token %}
            <table class="table-span">
                <tr>
                    <td>部门名称:</td>
                    <td>{{ form.name }}</td>
                    <td>{{ form.errors.name }}</td>
                </tr>
                <tr>
                    <td>负 责 人:</td>
                    <td>{{ form.leader }}</td>
                    <td>{{ form.errors.leader }}</td>
                </tr>
                <tr>
                    <td>手 机 号:</td>
                    <td>{{ form.phone }}</td>
                    <td>{{ form.errors.phone }}</td>
                </tr>
                <tr>
                    <td>所在区域:</td>
                    <td>{{ form.region }}</td>
                    <td>{{ form.errors.region }}</td>
                </tr>
                <tr>
                    <td>办公位置:</td>
                    <td>{{ form.address }}</td>
                    <td>{{ form.errors.address }}</td>
                </tr>
                <tr>
                    <td>区域经度:</td>
                    <td>{{ form.longitude }}</td>
                    <td>{{ form.errors.longitude }}</td>
                </tr>
                <tr>
                    <td>区域纬度:</td>
                    <td>{{ form.latitude }}</td>
                    <td>{{ form.errors.latitude }}</td>
                </tr>
                <tr>
                    <td colspan="3">
                        <a class="btn btn-secondary btn-left"
                           href="{% url 'department:index' %}">返回</a>
                        <button class="btn btn-danger btn-left"
                                type="reset">清空
                        </button>
                        <button class="btn btn-primary btn-left" type="submit">保存</button>
                    </td>
                </tr>
            </table>
        </form>
    </div>
{% endblock %}